import {sign} from "jsonwebtoken";

export const encryptBySecret = (str) => (sign(str, process.env.REACT_APP_SECRET));